package com.example.user.alarmreceiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;


public class AlarmReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context,Intent intent) {
        context.startService(new Intent(context,NetfyService.class));
       /* 等价于
        Intent intent1 = new Intent(context.NetfyService.class);
        context.startService(intent);*/
    }
}
